package com.rop.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rop.model.system.SysRoleMenu;
import com.rop.model.vo.AssignMenuVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;


/**
 * <p>
 * 角色菜单 Mapper 接口
 * </p>
 *
 * @author rop
 * @since 2023-04-26
 */

@Repository
public interface SysRoleMenuMapper extends BaseMapper<SysRoleMenu> {

    /**
     * 批量添加角色与菜单的关系
     * @param assignMenuVo 角色与菜单关系vo
     * @return 批量添加结果
     */
    Integer batchInsert(@Param("vo") AssignMenuVo assignMenuVo);

}
